#移动0
class Solution:
    def moveZeroes(self, nums):
        """
        Do not return anything, modify nums in-place instead.
        """
        slow,fast = 0,0
        size=len(nums)
        while fast<size:
            if nums[fast]!=0:
                nums[fast]=nums[slow]
                slow+=1
            fast+=1
        while slow<size:
            nums[slow]=0
            slow+=1